<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看患教活动</title>
    <link rel="stylesheet" href="../../../layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layui/layuiAdmin/css/admin.css" media="all">
</head>
<body>
<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin" style="padding: 20px 0 0 0;">
    <!--活动ID-->
    <div class="layui-form-item layui-hide">
        <div class="layui-input-inline st">
            <input type="text" name="activityId" lay-verify="required" class="layui-input layui-hide">
        </div>
    </div>
    <!--  主持人  -->
    <div class="layui-form-item">
        <label class="layui-form-label">主持人</label>
        <div class="layui-input-inline st">
            <input type="text" disabled="disabled" name="compere" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
        </div>
    </div>
    <!--  活动主题  -->
    <div class="layui-form-item">
        <label class="layui-form-label">活动主题</label>
        <div class="layui-input-inline st">
            <input type="text" disabled="disabled" name="activityName" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
        </div>
    </div>
    <!--  目标人数  -->
    <div class="layui-form-item">
        <label class="layui-form-label">目标人数</label>
        <div class="layui-input-inline st">
            <input type="text" name="participantsNumber" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
        </div>
    </div>
    <!--  直播时间  -->
    <div class="layui-inline">
        <label class="layui-form-label">直播开始时间</label>
        <div class="layui-input-inline" style="width: 200px;">
            <input type="date" disabled="disabled" name="liveTime" placeholder="" autocomplete="off" class="layui-input">
        </div>
    </div>
    <!--  报名开始时间  -->
    <div class="layui-inline">
        <label class="layui-form-label">报名开始时间</label>
        <div class="layui-input-inline" style="width: 200px;">
            <input type="date" disabled="disabled" name="registrationStartTime" placeholder="" autocomplete="off" class="layui-input">
        </div>
    </div>
    <!--  报名结束时间  -->
    <div class="layui-inline">
        <label class="layui-form-label">报名结束时间</label>
        <div class="layui-input-inline" style="width: 200px;">
            <input type="date" disabled="disabled" name="registrationEndTime" placeholder="" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">患教所需费用</label>
        <div class="layui-input-inline st">
            <input type="text" disabled="disabled" name="money" lay-verify="required|password" placeholder="核桃币" autocomplete="off" class="layui-input" style="width: 80px;text-align: right">
        </div>
    </div>


    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="返回">
    </div>
</div>
<script src="../../layui/layui.js"></script>
<script>
    layui.config({
        base: '../../../layui/layuiAdmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'layer', 'form','layedit','laydate'], function(){
        var $ = layui.$
            ,form = layui.form
            ,layer = layui.layer
            ,laydate = layui.laydate
            ,layedit = layui.layedit;

        //常规用法
        laydate.render({
            elem: '#hiredate'
        });


        // 通过后端动态获取下拉数据
        $.ajax({
            url:"/patient_education_activity/list",
            type:"get",
            dataType:"json",
            success:function (res){
                // 后端获取部门数据
                var selectData = res.data;
                // 清空列表
                $("#deptSelect").empty();
                // 循环遍历
                $.each(selectData,function (index,item){
                    $("#deptSelect").append(new Option(item.deptName,item.deptId));
                })
                form.render('select'); // 更新渲染
            }
        })
    })
</script>

</body>
</html>
